import styled,{ createGlobalStyle } from "styled-components";

// 1. 导入 createGloablStyle 和styled
// createGlobalStyle
// 2. reset 
export const GlobalStyle=createGlobalStyle`
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
html, body {
    background: #f2f3f4;;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
a {
    text-decoration: none;
    color: #fff;
}
`
export const Meta=styled.nav`
    display: flex;
    padding: 5px 10px;
    a{
        /* flex:1; */
        padding:2px 0px;
        font-size:18px;
        color:black;
        span{
        padding: 0 5px;
        }
    }
    .userName div:after{
        content: "";
        border-right: 2px solid gray;
    }
    .timeTag{
        pointer-events: none;
        cursor: default;
    }

`
export const MetaItem=styled.div`

`
export const Main=styled.main`
    padding: 5px 10px;
    .content{
        display: flex;
    }
` 
export const MainItem=styled.div`
    padding: 5px 10px;
    background-color: green;
    
`

